<link rel="stylesheet" href="//code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script src="//code.jquery.com/jquery-1.9.1.js"></script>
<script src="//code.jquery.com/ui/1.10.3/jquery-ui.js"></script>

<div id='wpcsv'>
    <div id='cpk_wpcsv_header'>
        <h2>导入Excel文件<?php if($this->error) echo "(错误:".$this->error.")";?></h2>
        <hr/>
    </div>
    <div id='cpk_wpcsv_content' style="min-height: 130px;">
        <div id='cpk_wpcsv_left'>
            <table class='widefat'>
                <thead>
                <tr><th colspan='2'><strong>上传Excel文件</strong></th></tr>
                </thead>
                <tbody>
                <tr><th>选择Excel文件</th><td>
                        <form enctype="multipart/form-data" action="" method="POST">
                            <?php if ( isset( $error ) ) echo $error; ?>
                            <input type="hidden" name="action" value="import" />
                            <input name="uploadedfile" type="file" />
                            </fieldset>
                            <strong class='red'><?php echo $error ?></strong></td></tr>
                </tbody>
            </table>
            <br />
            <input type='submit' value='上传'/>
            </form>

        </div>

    </div>
    <div id='cpk_wpcsv_footer'>
    </div>
</div>

